package com.dingding.service.facade.special.driver;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dingding.common.core.beans.special.SpecialDrivingRecord;
import com.dingding.facade.user.common.dto.special.driver.ReqSpecialDrivingRecord;
import com.dingding.facade.user.common.dto.special.driver.ResOrderMileageCost;
import com.dingding.facade.user.facade.special.driver.ISpecialDrivingRecordFacade;
import com.dingding.service.core.special.service.ISpecialDrivingRecordService;

/**
 * 
 * @ClassName: SpecialDrivingRecordFacadeImpl 
 * @Description: 车主行车记录表服务接口实现类
 * @author YHQ
 * @date 2016年12月8日 上午9:36:08
 * @since V2.5.7
 * 
 */
@Component("specialDrivingRecordFacade")
public class SpecialDrivingRecordFacadeImpl implements ISpecialDrivingRecordFacade{

	@Resource(name = "specialDrivingRecordService")
	private ISpecialDrivingRecordService specialDrivingRecordService;
	
	/**
	 * 
	 * @Title: getSpecialDrivingRecored 
	 * @Description: 获取专车司机行车记录表
	 * @param reqSpecialDrivingRecord 获取专车司机行车记录表请求Bean
	 * @author YHQ 
	 * @since V2.5.7
	 * @return SpecialDrivingRecord    返回类型
	 * 
	 */
	@Override
	public SpecialDrivingRecord getSpecialDrivingRecored(ReqSpecialDrivingRecord reqSpecialDrivingRecord) {
		
		return specialDrivingRecordService.getSpecialDrivingRecored(reqSpecialDrivingRecord);
	}

	/**
	 * 
	 * @Title: saveSpecialDrivingRecored 
	 * @Description: 保存专车司机行车记录表
	 * @param specialDrivingRecord 司机行车记录对象
	 * @author YHQ 
	 * @since V2.5.7
	 * @return boolean    返回类型
	 * 
	 */
	@Override
	public boolean saveSpecialDrivingRecored(SpecialDrivingRecord specialDrivingRecord) {
		
		return specialDrivingRecordService.saveSpecialDrivingRecored(specialDrivingRecord);
	}

	/**
	 * 
	 * @Title: getOrderMileageCost 
	 * @Description: 实时计算订单里程以及价格
	 * @param reqSpecialDrivingRecord 客户端请求参数
	 * @author YHQ 
	 * @since V2.5.7
	 * @return ResOrderMileageCost    返回类型
	 * 
	 */
	@Override
	public ResOrderMileageCost getOrderMileageCost(ReqSpecialDrivingRecord reqSpecialDrivingRecord) {
		
		return specialDrivingRecordService.getOrderMileageCost(reqSpecialDrivingRecord);
	}

}
